import request from '@/utils/request'
const getway = '/xmtsc-api'
const getways = '/xmtsc-api'

// 获取推荐政策
export function findRecommendPolicyList(data) {
  return request({
    url: getway+ '/api/policy/findRecommendPolicyList',
    method: 'post',
    data: data
  })
}

// 获取政策列表
export function findAllList(data) {
  return request({
    url: getway+ '/api/policy/findAllList',
    method: 'post',
    data: data
  })
}

export function filter_list(data) {
  return request({
    url: getway+'/api/syscode/findBaseData',
    method: 'get',
    params : data
  })
}

export function getPolicyNaire(data) {
  return request({
    url: getway+'/api/policy/getPolicyNaire',
    method: 'get',
    params : data
  })
}

//匹配政策
export function matchPolicy(data) {
  return request({
    url: getway +'/api/policy/matchPolicy',
    method: 'get',
    params : data
  })
}

//api/policy/applyPolicy 咨询政策
export function applyPolicy(data) {
  return request({
    url: getway +'/api/policy/applyPolicy',
    method: 'get',
    params : data
  })
}

//api/infomation/findAllList 资讯接口
export function findAllLista(data) {
  return request({
    url: getway +'/api/infomation/findAllList',
    method: 'get',
    params : data
  })
}

//api/infomation/findUserAllList 服务商超
export function findUserAllList(data) {
  return request({
    url: getway +'/api/infomation/findServiceAllianceList',
    method: 'get',
    params : data
  })
}

//getInfomationDetail 资讯详情
export function getInfomationDetail(data) {
  return request({
    url: getway +'/api/infomation/getInfomationDetail',
    method: 'get',
    params : data
  })
}

//api/activity/findAllList 活动列表
export function activityfindAllList(data) {
  return request({
    url: getway +'/api/activity/findAllList',
    method: 'get',
    params : data
  })
}

//api/activity/getActivityDetail 活动详情
export function getActivityDetail(data) {
  return request({
    url: getway +'/api/activity/getActivityDetail',
    method: 'get',
    params : data
  })
}

//api/policy/getPolicyDetail 政策详情
export function getPolicyDetail(data) {
  return request({
    url: getway +'/api/policy/getPolicyDetail',
    method: 'get',
    params : data
  })
}

//api/activeSign/addActivitySign 新增报名
export function addActivitySign(data) {
  return request({
    url: getway +'/api/activeSign/addActivitySign',
    method: 'get',
    params : data
  })
}

//api/messages/saveMessage 咨询表单
export function saveMessage(data) {
  return request({
    url: getway +'/api/messages/saveMessage',
    method: 'get',
    params : data
  })
}

//api/companyauthen/submitBusinessLicense 企业认证
export function submitBusinessLicense(data) {
  return request({
    url: getway +'/api/companyauthen/submitBusinessLicense',
    method: 'get',
    params : data
  })
}

// 签到
export function signapply(data) {
  return request({
    url: getway +'/api/activeSign/apply',
    method: 'get',
    params : data
  })
}
